package com.zzl.car.exception;

//自定义错误信息
public class ZdpException extends RuntimeException {
    private int code;
    private String msg;
    public ZdpException(){
        this(1111,"自定义异常");
    }
    public ZdpException(String msg) {
        this(1111, msg);
    }
    public ZdpException(int code, String msg) {
        super(msg);
        this.code = code;
        this.msg = msg;
    }
    public int getCode() {
        return code;
    }
    public String getMsg() {
        return msg;
    }


}
